

import { createRouter, createWebHistory } from 'vue-router'

// const User = {
// 	template: '<div>User</div>',
// }

// 这些都会传递给 `createRouter`
const routes = [
	// 动态字段以冒号开始
	// { path: '/', component: () => import('../components/test.vue') },
	{ path: '/', component: () => import('../components/HelloWorld.vue') },
	{ path: '/test', component: () => import('../components/test.vue') },
	{ path: '/show', component: () => import('../components/Show.vue') },

]

const router = createRouter({
	history: createWebHistory(),
	routes
})
export default router